Use PEGetErrorCode to retrieve a number that indicates the status of the most recent Crystal Report Engine function called. When a call to another function fails, this call gets the error code that was generated so you can take some action based on that error code. PEGetErrorCode must be called immediately after the call to the function which indicated an error.
short CRPE_API PEGetErrorCode (
short printJob );
Specifies the print job from which you want to retrieve an error code. If the most recent function was called while no print job was open, use 0 for this parameter. |
Declare Function PEGetErrorCode Lib "crpe32.dll" (ByVal printJob As Integer) _
As Integer
function PEGetErrorCode (
printJob: Word
): Smallint stdcall;
EXTERN CWORD PEGetErrorCode (CWORD) CRPE.DLL
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |